<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<h1 th:text="${string}"></h1>
<h2 th:text="${appName}"></h2>
<h2 th:text="${uploadDir}"></h2>
<h2 th:text="${webPath}"></h2>
<h2 th:text="${myConfig.dir}"></h2>
<h2 th:text="${myConfig.webPath}"></h2>

爱好:
    <span th:each="l : ${myConfig.likes}">
        <input type="text" th:name="${l}">
        <label th:text="${l}"></label>
    </span>
籍贯:
    <select>
        <option th:text="${myConfig.citys.get('衡阳')}"></option>
        <option th:text="${myConfig.citys.get('株洲')}"></option>
        <option th:text="${myConfig.citys.get('长沙')}"></option>
    </select>

<table>
    <tr>
        <th>编号</th>
        <th>名称</th>
    </tr>
    <tr th:each="car : ${cars}">
        <td th:text="${car.id}"></td>
        <td th:text="${car.model}"></td>
    </tr>
</table>

</body>
</html>